<div class="breadcrumbs">
    <a href="<?php echo url_for('@homepage')?>">Главная</a>
    <?php if( isset($links) ): ?>
    <?php foreach( $links as $link ): ?>
        <?php if( isset( $link['module'] ) ): ?>
            <a href="<?php echo url_for( 'default_index', array('module' => $link['module']) )?>"><?php echo $link['name']?></a>
        <?php else: ?>
            <span><?php echo $link['name']?></span>
        <?php endif; ?>
    <?php endforeach; ?>
    <?php endif; ?>
</div>